package com.oa.admin.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.oa.admin.dto.UsingApplicationConditionDTO;
import com.oa.admin.entity.UsingApplication;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.oa.admin.exportvo.UsingApplicationExportVO;
import com.oa.admin.vo.UsingApplicationDetailsVO;
import com.oa.admin.vo.UsingApplicationListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * <p>
 * 用印申请表 Mapper 接口
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface UsingApplicationMapper extends BaseMapper<UsingApplication> {
    /**
     * 分页查询列表
     *
     * @param page
     * @return
     */
    List<UsingApplication> findList(Pagination page);

    /**
     * 查询所有列表
     *
     * @return
     */
    List<UsingApplication> findList();

    /**
     * 根据id查询
     */
    UsingApplication findById(@Param("id") String id);

    /**
     * 根据抄送人查询用印申请--无分页
     *
     * @param
     * @return
     */
    List<UsingApplicationListVO> findUsingApplicationListVOByCc(@Param("usingApplicationConditionDTO") UsingApplicationConditionDTO usingApplicationConditionDTO);

    /**
     * 根据抄送人查询用印申请-分页
     *
     * @param page
     * @param
     * @return
     */
    List<UsingApplicationListVO> findUsingApplicationListVOByCc(Pagination page, @Param("usingApplicationConditionDTO") UsingApplicationConditionDTO usingApplicationConditionDTO);

    /**
     * 根据条件查询用印申请
     *
     * @param usingApplicationConditionDTO
     * @return
     */
    List<UsingApplicationListVO> findUsingApplicationListVOByCondition(Pagination page, UsingApplicationConditionDTO usingApplicationConditionDTO);


    /**
     * 根据主键id查询用印申请详情
     *
     * @param id
     * @return
     */
    UsingApplicationDetailsVO findUsingApplicationDetails(String id);

    /**
     * 查询导出用印信息列表
     * @return
     */
    List<UsingApplicationExportVO> findexportUsingApplicationList();
}
